package org.jdesktop.swingx.table.model;

import javax.swing.table.TableModel;

public class RowSectionTableModelWapper extends AbstractRowReIndexTableModelWapper<TableModel> {

	int[] rowIndexs;
	
	
	public RowSectionTableModelWapper(TableModel t,int[] rowIndexs) {
		super(t);
		this.rowIndexs=rowIndexs;
	}

	
	@Override
	public int getRowCount() {
		return rowIndexs.length;
	}


	@Override
	public int getRowIndex(int wapperRowIndex) {
		return rowIndexs[wapperRowIndex];
	}

}
